﻿ /* --------------
   *   dialog  *
* ------------ */
@import "mixin";
$imgSkinUrl: '../images/';

.l-dialog-loading{ background-image:url('../images/ui/loading.gif'); width: 48px; height: 48px; box-sizing: border-box; background-color: transparent;}
.l-dialog{ padding:0; margin:0;font-size:12px; border: 0;border-radius: 10px; box-shadow: 0 0 20px #333;}
.l-dialog td,.l-dialog tr,.l-dialog td div{font-size:12px; }
.l-dialog-cc{ background: none;}
.l-dialog-tl,.l-dialog-tr,.l-dialog-bl,.l-dialog-br,.l-dialog-cl,.l-dialog-cr{width:1px;}
.l-dialog-tl,.l-dialog-tc,.l-dialog-tr{ height:24px;}
.l-dialog-bl,.l-dialog-bc,.l-dialog-br{ height:0px; line-height:0px;}
.l-dialog-btn {
    width:auto;
    box-shadow: none;
    height: 20px;
    line-height: 20px;
    padding: 0 25px;
    border: 0;
    border-radius: 100px;
    color: #fff;
    cursor: pointer;
    font-weight: normal;
    @include backgroundGradient(#15b26d, #139a5f, vertical);
    &:hover {
        color: #fff;
        background: #15b26d;
    }
    &:active {
        color: #fff;
        @include backgroundGradient(#139a5f, #15b26d, vertical);
    }
}

.l-dialog-btn.l-dialog-btn-no{
    color: #555;
    background: #fff;
    border: 1px solid #fff;
    box-sizing: border-box;
    line-height: 18px;
    // @include backgroundGradient(#ffffff, #eeeeee, vertical);
    &:hover{
        // background: #fff;
        border: 1px solid #52c994;
        color: #52c994;
    }
    &:active{
        // @include backgroundGradient(#eeeeee, #ffffff, vertical);
        border: 1px solid #139a5f;
        color: #139a5f;
    }
}
.l-dialog-tl{ background:none;border-bottom: 1px solid #f5f5f5;}
.l-dialog-tc {
    font-size: 14px;
    font-weight: bold;
    height: 29px;
    line-height: 29px;
    border-bottom: 1px solid #e9e9e9;
    padding: 0;
    background: none;
}
.l-dialog-tr{background:none;border-bottom: 1px solid #f5f5f5;}
.l-dialog-bl{background:none;}
.l-dialog-bc{background:none;}
.l-dialog-br{background:none;}
.l-dialog-cl{background:none;}
.l-dialog-cr{background:none;}
.l-dialog-cl{background:none;}
.l-dialog-cl,.l-dialog-cc,.l-dialog-cr{border-top: 1px solid #e9e9e9;}
.l-dialog-icon
{
    display: none;
}
.l-dialog-winbtns{ position:absolute;right:0px; top:7px; height:16px;}
.l-dialog-winbtn{background:url('../images/win/dialog-winbtns.gif') no-repeat;cursor:pointer;overflow:hidden; width:17px; height:16px; float:right; margin-right:4px;}

.l-dialog-close{background-position:-85px 0px;}
.l-dialog-close-over{background-position:-85px -16px;}
.l-dialog-close-disabled{background-position:-85px -32px; cursor:default;}
.l-dialog-min{ background-position:0px 0px;}
.l-dialog-min-over{background-position:0px -16px;}
.l-dialog-min-disabled{background-position:0px -32px;cursor:default;}
.l-dialog-max{background-position:-17px 0px;}
.l-dialog-max-over{background-position:-17px -16px;}
.l-dialog-max-disabled{background-position:-17px -32px;cursor:default;}
.l-dialog-recover{background-position:-34px 0px;}
.l-dialog-recover-over{background-position:-34px -16px;}
.l-dialog-recover-disabled{background-position:-34px -32px;cursor:default;}

.l-dialog-collapse{background-position:-51px 0px;}
.l-dialog-collapse-over{background-position:-51px -16px;}
.l-dialog-collapse-disabled{background-position:-51px -32px;cursor:default;}
.l-dialog-extend{background-position:-68px 0px;}
.l-dialog-extend-over{background-position:-68px -16px;}
.l-dialog-extend-disabled{background-position:-68px -32px;cursor:default;}

.l-dialog-tc-inner{ position:relative;height:29px; line-height:29px; width:100%; box-sizing: border-box; }
// .l-dialog-tc-inner:before{
//     content: '';
//     display: block;
//     position: absolute;
//     left: 0;
//     top: 0;
//     width: 0;
//     height: 0;
//     border-bottom: 13px solid #00877a;
//     border-left: 13px solid transparent;
// }
// .l-dialog-tc-inner:after{
//     content: '';
//     display: block;
//     position: absolute;
//     left: 0;
//     top: 13px;
//     width: 13px;
//     height: 16px;
//     background: #fff;
// }
.l-dialog-title {color:#04897c; font-weight:bold; font-weight:normal; text-shadow:none; padding-left:3px; padding-right:20px; text-align:left; padding-top:0px; background: #fff; text-align: center; border-radius: 10px 10px 0 0;}


.l-dialog-buttons{ height:22px; line-height:22px; background: #dbdbdb;border-top:0; overflow:hidden; margin-bottom:0px; text-align: center; border-radius: 0 0 10px 10px;}
.l-dialog-buttons-inner{display: inline-block; margin-top: 1px;}



.l-dialog-inputtext{ width:280px; border:1px solid #0099CC; line-height:23px; height:25px;}
.l-dialog-textarea{ width:280px; border:1px solid #0099CC;  height:80px;}


.l-selectorwin .l-dialog-content {
	overflow:hidden; padding:0px;
}
.l-selectorwin .l-dialog-content .l-form {
	margin:0; padding:2px; background:#F8F8F8;border-bottom: 1px solid #C6C6C6;
}
.l-selectorwin .l-dialog-buttons {
	margin-top: 0;
}
.l-selectorwin .l-panel {
	border:0;
}

.l-dialog-body{
    border-radius: 0 0 10px 10px;
}
.l-dialog-cc .l-dialog-buttons{margin-top: 0;}
.l-dialog.SQalert .l-dialog-tl,
.l-dialog.SQalert .l-dialog-tc,
.l-dialog.SQalert .l-dialog-tr,
.l-dialog.SQalert .l-dialog-cl,
.l-dialog.SQalert .l-dialog-cc,
.l-dialog.SQalert .l-dialog-cr
{border: 0;}
.l-dialog.SQalert .l-dialog-content{text-align: center; font-size: 14px; background: none; word-break:break-all;}
.l-dialog.SQalert .l-dialog-body{padding-bottom: 30px;}
.l-dialog.SQalert.hasAlertBtn .l-dialog-body{padding-bottom: 0;}
.l-dialog.SQalert.hasAlertBtn .l-dialog-content{padding-bottom: 25px;}

.l-dialog.SQalert{background: #fff;}
.SQalert .l-dialog-title,
.SQalert .l-dialog-tc-inner:after,
.SQalert .l-dialog-cc{background: none;}
.SQalert .l-dialog-cc .l-dialog-buttons{border-top: 0;}
.l-dialog.SQalert .l-dialog-btn .l-dialog-btn-inner:before{background-position: 0 -280px;}

.SQalert.alert_success{background: #f3faf0;}
.SQalert.alert_success .l-dialog-title,
.SQalert.alert_success .l-dialog-tc-inner:after,
.SQalert.alert_success .l-dialog-cc{background: none;}
.SQalert.alert_success .l-dialog-cc,
.SQalert.alert_success .l-dialog-title{color: #3c763d;}
.SQalert.alert_success .l-dialog-tc-inner:before{border-bottom: 13px solid #62cb31; border-left: 13px solid transparent;}

.SQalert.alert_warning{background: #fff8e6;}
.SQalert.alert_warning .l-dialog-title,
.SQalert.alert_warning .l-dialog-tc-inner:after,
.SQalert.alert_warning .l-dialog-cc{background: none;}
.SQalert.alert_warning .l-dialog-cc,
.SQalert.alert_warning .l-dialog-title{color: #333;}
.SQalert.alert_warning .l-dialog-tc-inner:before{border-bottom: 13px solid #ffb606; border-left: 13px solid transparent;}

.SQalert.alert_error{background: #ffeee6;}
.SQalert.alert_error .l-dialog-title,
.SQalert.alert_error .l-dialog-tc-inner:after,
.SQalert.alert_error .l-dialog-cc{background: none;}
.SQalert.alert_error .l-dialog-cc,
.SQalert.alert_error .l-dialog-title{color: #e74c3c;}
.SQalert.alert_error .l-dialog-tc-inner:before{border-bottom: 13px solid #e74c3c; border-left: 13px solid transparent;}

.SQalert.alert_success,
.SQalert.alert_warning,
.SQalert.alert_error{
    .l-dialog-btn{
        color: #555;
        background: #fff;
        border: 1px solid #fff;
        box-sizing: border-box;
        line-height: 18px;
        &:hover{
            background: #fff;
            border: 1px solid #52c994;
            color: #52c994;
        }
        &:active{
            background: #fff;
            border: 1px solid #139a5f;
            color: #139a5f;
        }
    }
}

.SQalert.alert_success .l-dialog-content,
.SQalert.alert_warning .l-dialog-content,
.SQalert.alert_error .l-dialog-content{
    background: none;
    &:before{
        content: '';
        display: inline-block;
        width: 19px;
        height: 19px;
        margin-right: 5px;
        background-image: url('#{$imgSkinUrl}sqIco_spirit.png');
        background-repeat: no-repeat;
        background-position: 0 250px;
        vertical-align: text-bottom;
    }
}
.SQalert.alert_success .l-dialog-content{
    &:before{
        background-position: 0 -272px;
    }
}
.SQalert.alert_warning .l-dialog-content{
    &:before{
        background-position: 0 -320px;
    }
}
.SQalert.alert_error .l-dialog-content{
    &:before{
        width: 20px;
        background-position: 0 -296px;
    }
}

.l-dialog.SQconfirm .l-dialog-btn-ok .l-dialog-btn-inner,
// .l-dialog.SQconfirm .l-dialog-btn-no .l-dialog-btn-inner{position: relative; padding-left: 15px;}
.l-dialog.SQconfirm .l-dialog-btn-ok .l-dialog-btn-inner:before,
.l-dialog.SQconfirm .l-dialog-btn-no .l-dialog-btn-inner:before{
    // content: "";
    // position: absolute;
    // left: -8px;
    // top: 50%;
    // display: block;
    // width: 20px;
    // height: 20px;
    // margin-top: -11px;
    // vertical-align: top;
    // background-image: url("../images/btnIco_spirit_s.png");
    // background-repeat: no-repeat;
}
// .l-dialog.SQconfirm .l-dialog-btn-ok .l-dialog-btn-inner:before{background-position: 0 -280px;}
// .l-dialog.SQconfirm .l-dialog-btn-no .l-dialog-btn-inner:before{background-position: 0 -260px;}

.l-dialog-content{
    background: #fff;
}
.l-dialog-content-frame{
    padding: 0;
    &.l-dialog-content-noimage{
        padding: 0;
    }
}
.l-dialog.autoFixHeight{
    .l-dialog-content{
        height: auto !important;
    }
}
.l-dialog .l-dialog-tl,
.l-dialog .l-dialog-tr,
.l-dialog .l-dialog-cl,
.l-dialog .l-dialog-cr,
.l-dialog .l-dialog-bl,
.l-dialog .l-dialog-br
{width: 0;}
.SQconfirm{
    .l-dialog-image-question{
        top: 13px;
        left:15px;
        width: 20px;
        height: 20px;
        background-image: url('#{$imgSkinUrl}sqIco_spirit.png');
        background-repeat: no-repeat;
        background-position: 0 -344px;
    }
    .l-dialog-content{
        padding-left: 50px !important;
        padding-bottom: 25px !important;
        min-height: 25px;
    }
}
.l-dialog .l-dialog-buttons-mask{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,.5);
}